package learningThread.api.stopApi.sleepStop;

public class MyThread extends Thread{

    @Override
    public void run() {

        try {
            System.out.println("run begin");
            Thread.sleep(200000);
            System.out.println("run end");
        } catch (InterruptedException e) {
            e.printStackTrace();
            System.out.println("在沉睡中被中止,進入catch，"+this.isInterrupted());
        }
    }
}
